home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++,comp.lang.c
- Path: in1.uu.net!allegra!alice!ark
- From: ark@research.att.com (Andrew Koenig)
- Subject: Re: Performance: C vs. C++
- Message-ID: <DLv2zC.A8z@research.att.com>
- Organization: AT&T Research, Murray Hill NJ
- References: <3105E9DC.1BE3@enermet.fi> <DLr46y.7rH@txnews.amd.com> <BLUME.96Jan27152610@zayin.cs.princeton.edu>
- Date: Sat, 27 Jan 1996 22:40:24 GMT
-
- In article <BLUME.96Jan27152610@zayin.cs.princeton.edu> blume@zayin.cs.princeton.edu (Matthias Blume) writes:
-
- > Why? You just gave the _real_ C equivalent yourself! A
- > multi-branch switch was never the C way of doing virtual functions.
- > C++'s virtual functions are nothing more than glorified C function
- > pointers.
-
- If you try the exercise of taking a C++ program that makes
- significant use of virtual functions and hand-translating it
- to C, you may discover that this statement is no more true
- than the statement that C is nothing more than a glorified
- assembly language.
- --
- --Andrew Koenig
- ark@research.att.com
-